<!--

    spring-security-form - spring-security-form
    Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity6" lang="zh">
<head>
    <link rel="icon" href="https://topiam.cn/img/favicon.ico" type="image/x-icon"/>
    <title>TOPIAM FORM - Spring Security 集成示例</title>
    <meta charset="utf-8"/>
    <style>
        span, dt {
            font-weight: bold;
        }
    </style>
    <script src="webjars/bootstrap/5.3.3/js/bootstrap.min.js"></script>
    <link href="webjars/bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <nav class="navbar bg-body-tertiary mt-3">
        <div class="container-fluid">
            <a class="d-flex align-items-center text-body-emphasis text-decoration-none" href="#">
                <img src="https://topiam.cn/img/full-logo.svg" alt="Logo" width="200" height="35" class="bi m-2">
            </a>
            <ul class="nav nav-pills">
                <li class="nav-item"><a href="https://topiam.cn" class="nav-link" target="_blank">Home</a></li>
                <li class="nav-item"><a href="https://gitee.com/topiam/eiam" class="nav-link" target="_blank">Gitee</a></li>
                <li class="nav-item"><a href="https://github.com/topiam/eiam" class="nav-link" target="_blank">GitHub</a></li>
                <li class="nav-item"><a href="https://topiam.cn/docs/faq/" class="nav-link" target="_blank">FAQs</a></li>
                <li class="nav-item"><a href="https://topiam.cn/enterprise/" class="nav-link" target="_blank">企业版</a></li>
            </ul>
            <form sec:authorize="isAuthenticated()" method="post" th:action="@{/logout}">
                <button class="btn btn-primary" id="rp_logout_button" type="submit">
                    退出登录
                </button>
            </form>
        </div>
    </nav>
    <div class="bg-light rounded mt-3 p-4">
        <h1 class="display-6">TOPIAM FORM - Spring Security 集成示例</h1>
        <p class="lead">TOPIAM（Top Identity and Access
            Management），是一款开源的身份管理与访问控制系统，广泛应用于政府、企业内部、教育机构等身份认证场景。作为一款专注于身份管理与访问控制场景的软件产品，TOPIAM
            支持 OIDC、OAuth2、SAML2、JWT、CAS 等主流认证协议，并能够集成钉钉、企业微信、飞书、LDAP、AD
            等多种身份源，轻松实现用户全生命周期管理与数据同步。在认证方面，TOPIAM
            支持用户名密码、短信/邮箱验证码等常规认证方式，并能集成钉钉、飞书、微信、企业微信、QQ
            等社交平台登录，让用户能够通过常见平台便捷登录，从而显著提升用户体验。在安全性方面，TOPIAM
            提供多因素认证、防暴力破解、会话管理、密码策略等能力，提升系统安全性。在审计方面，TOPIAM
            提供全面的行为审计功能，详尽记录用户行为，发现潜在安全风险并及时采取防范措施，确保合规性和安全性。在信创方面，TOPIAM
            全面支持从 CPU、操作系统、中间件、数据库、浏览器、国密算法的兼容适配，满足自主可控的技术需求。通过
            TOPIAM，企业和团队能够快速实现统一的内外部身份认证，并集成各类应用，实现“一个账号、一次认证、多点通行”的效果，强化企业安全体系，提高组织管理效率，提升用户体验，助力企业数字化升级转型。</p>
        <a class="btn btn-light" href="https://gitee.com/topiam/eiam" target="_blank" role="button"> <img
                src="https://gitee.com/topiam/eiam/badge/star.svg?theme=gvp" alt="gitee"></a>
        <a class="btn btn-light" href="https://github.com/topiam/eiam" target="_blank" role="button"> <img
                src="https://img.shields.io/github/stars/topiam/eiam.svg?style=social" alt="github"></a>
        <a class="btn btn-link" href="https://topiam.cn/docs/protocol/form/overview/" target="_blank"
           role="button">帮助文档</a>
    </div>
    <div sec:authorize="isAuthenticated()" class="mt-3 p-4 bg-primary-subtle">
        <dl class="row mb-0">
            <dt class="col-sm-3">当前用户：</dt>
            <dd class="col-sm-9" style="overflow: auto" sec:authentication="name"></dd>
        </dl>
    </div>
    <div class="d-flex justify-content-evenly mt-3 p-4 bg-light-subtle">
        <div class="p-2 bd-highlight">
            <div class="card" style="width: 18rem;">
                <img src="/images/mp.png" class="card-img-top" alt="...">
                <div class="card-body pt-1 pb-1">
                    <p class="card-text text-center">关注<strong>公众号</strong>，优先获取最新资讯</p>
                </div>
            </div>
        </div>
        <div class="p-2 bd-highlight">
            <div class="card" style="width: 18rem;">
                <img src="/images/wechat.png" class="card-img-top" alt="...">
                <div class="card-body pt-1 pb-1">
                    <p class="card-text text-center">扫码加入<strong>社区微信交流群</strong></p>
                </div>
            </div>
        </div>
    </div>
    <footer class="py-3 my-4">
        <ul class="nav justify-content-center border-bottom pb-3 mb-3">
            <li class="nav-item"><a href="https://topiam.cn" class="nav-link px-2 text-body-secondary" target="_blank">Home</a>
            </li>
            <li class="nav-item"><a href="https://gitee.com/topiam/eiam"
                                    class="nav-link px-2 text-body-secondary" target="_blank">Gitee</a>
            </li>
            <li class="nav-item"><a href="https://github.com/topiam/eiam"
                                    class="nav-link px-2 text-body-secondary" target="_blank">GitHub</a></li>
            <li class="nav-item"><a href="https://topiam.cn/docs/faq/"
                                    class="nav-link px-2 text-body-secondary" target="_blank">FAQs</a></li>
            <li class="nav-item"><a href="https://topiam.cn/enterprise/" class="nav-link px-2 text-body-secondary"
                                    target="_blank">企业版</a></li>
        </ul>
        <p class="text-center text-body-secondary">© 2022-Present 济南源创网络科技有限公司。保留一切权利。</p>
    </footer>
</div>
</body>
</html>